package com.yex.service;

import com.baomidou.mybatisplus.service.IService;
import com.yex.common.utils.PageUtils;
import com.yex.entity.InvestmentEntity;
import com.yex.utils.JsonResultVo;

import java.util.Map;

/**
 * 报单
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-01-03 15:02:27
 */
public interface InvestmentService extends IService<InvestmentEntity> {

    PageUtils queryPage(Map<String, Object> params);
    /**
     * 当期产品
     */
    InvestmentEntity selectByOne();
    /**
     * 到期产品
     */
    InvestmentEntity selectEndTimeByOne();
    /**
     * 动态奖
     */
    InvestmentEntity selectEndTimeByDynamic();
    /**
     * 修改动态奖状态
     */
    Integer updateDynamicStatus(Integer investmentId);
    /**
     * 修改到期状态
     */
    Integer updateEndTimeByDynamicStatus(Integer investmentId);

    JsonResultVo selectUserInvestment(Integer userId);




}

